package com.example.hello.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("employee")
public class Employee {
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    private String username;
    
    private String password;
    
    private String name;
    
    private Integer gender;
    
    @TableField("phone_number")
    private String phoneNumber;
    
    @TableField("department_id")
    private Integer departmentId;
    
    @TableField("position_id")
    private Integer positionId;
    
    private String avatar;
    
    @TableField("join_date")
    private LocalDate joinDate;
    
    @TableField("create_time")
    private LocalDateTime createTime;
    
    @TableField("update_time")
    private LocalDateTime updateTime;
    
    @TableField(exist = false)
    private Department department;
    
    @TableField(exist = false)
    private Position position;
    
    @TableField(exist = false)
    private List<WorkExperience> workExperiences;
} 